package com.medata.utils;


import com.medata.vo.ResultVo;

/**
 * Creat by ZZZB
 * 2019-02-02 12:54
 */


public class ResultVOUtil {

    public static ResultVo success(Object object) {
        ResultVo resultVO = new ResultVo();
        resultVO.setData(object);
        resultVO.setMsg("成功");
        resultVO.setCode(200);
        return resultVO;
    }


    public static ResultVo success(){
        return  success(null);
    }

    public static ResultVo erro(Integer code, String msg){
        ResultVo resultVO=new ResultVo();
        resultVO.setCode(code);
        resultVO.setMsg(msg);
        return resultVO;
    }
}

